import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
// -------------- router ------------------
import router from "./routes/index";
// -------------- element-ui -----------------
import 'element-ui/lib/theme-chalk/index.css'; //css
import {
    Pagination,//分页
    Menu, //导航
    Submenu, //导航
    MenuItem, //导航
    MenuItemGroup, //导航
    Container,
    Header,
    Aside,
    Main,
    Footer,
    Button,
    Row,
    Col,
    Card,
    Dialog,
    Select,
    Option,
    Form,
    FormItem,
    Input,
    DatePicker,
    TimeSelect,
    TimePicker,
    Table,
    TableColumn,
    Loading,
    Message,
    Tabs,
    TabPane,
    Slider,
    Switch,
    Tag
} from 'element-ui';

Vue.use(Pagination);//分页
Vue.use(Menu);//导航
Vue.use(Submenu);//导航
Vue.use(MenuItem);//导航
Vue.use(MenuItemGroup);//导航
Vue.use(Container)
Vue.use(Aside)
Vue.use(Header)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Button)
Vue.use(Row)
Vue.use(Col)
Vue.use(Card)
Vue.use(Dialog)
Vue.use(Select)
Vue.use(Option)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(DatePicker)
Vue.use(TimeSelect)
Vue.use(TimePicker)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Loading.directive);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Tag);
Vue.use(Slider);
Vue.use(Switch);

Vue.prototype.$message = Message;
// -------------------- 挂载 -------------------
new Vue({
    el: '#app',
    render: h => h(App),
    router
}).$mount('#app')
